#include <stdio.h>
int main()
{
	int a, b, r, mul;
	printf("Please input two integers...\n");
	scanf("%d %d", &a, &b);
	mul = a * b;
	r = a % b;
	while ( r != 0 )
	{
		a = b;
		b = r;
		r = a % b;
	}
	printf("The greatest common divisor is %d: \n", b);
	printf("The least common multiple is %d: \n", mul / b);
}
